package cn.jingzhuan.fm.mvp.model

import cn.jingzhuan.fm.mvp.contract.FMAudioContract
import cn.jingzhuan.fm.network.FMApiService
import cn.jingzhuan.fm.network.json.JsonResponse
import cn.jingzhuan.fm.pojo.FMAlbum
import cn.jingzhuan.fm.pojo.FMAudio
import io.reactivex.Flowable
import javax.inject.Inject

class FMAudioModel  @Inject constructor(var fmApiService: FMApiService) : FMAudioContract.Model {

    override fun audioListen(audioId: String): Flowable<JsonResponse<FMAudio>> = fmApiService.audioListen(audioId)

    override fun albumFind(albumId: String): Flowable<JsonResponse<FMAlbum>> = fmApiService.albumFind(albumId)

}